import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1709712300548_8448',
  koa: {
    port: 8080,
  },
  passport: {
    session: false,
  },
  redis: {
    client: {
      port: 6379, // Redis port
      host: "8.137.20.73", // Redis host
      password: "redis",
      db: 0,
    },
  },
  typeorm: {
    dataSource: {
      default: {
        type: 'mysql',
        host: '8.137.20.73',
        port: 3306,
        username: 'test',
        password: 'test1234',
        database: 'tmpf',
        synchronize: false,
        logging: true,
        entities: '**/entity/user.entity{.ts,.js}',
      }
    }
  }
} as MidwayConfig;
